#
# To compile, type "make" or make "all"
# To remove files, type "make clean"
#
OBJS = server.o request.o rio.o
TARGET = server

CC = gcc
CPP = g++
CFLAGS = -g -Wall -pthread
CPPFLAGS = -g -Wall

.SUFFIXES: .c .o 

all: server client generateString

server: server.o request.o rio.o
	$(CC) $(CFLAGS) -o server server.o request.o rio.o

client: client.o rio.o
	$(CC) $(CFLAGS) -o client client.o rio.o

generateString:
	$(CPP) $(CPPFLAGS) -o generateString generateString.cpp

.c.o:
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	-rm -f $(OBJS) server client generateString output.cgi *.o
